package com.example.oauth2.repository;


import com.example.oauth2.entry.Client;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ClientRepository extends JpaRepository<Client, String> {
    Client findByClientId(String clientId);
    List<Client> findAll();
    @Transactional
    void deleteClientByClientId(String clientId);
}
